package com.tjsinfo.tjsoa.message;

import java.util.Hashtable;
import java.util.Iterator;
import java.util.List;

import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
public class TjsMessageIm {
	private final boolean starttrue=true;
	private final boolean startfalse=false;
	public boolean sendMessage(String msnaddress,String message){
		JML jml = new JML();
		Configuration configuration;
		try {
			configuration = new PropertiesConfiguration("com/tjsinfo/tjsoa/message/properties/message.properties");
			jml.setEmail(configuration.getString("address"));
			jml.setPassword(configuration.getString("password"));
		} catch (ConfigurationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		Hashtable table = new Hashtable();
		table.put(msnaddress, message);
		//jml.sendMessageHashtable(table);	
		return starttrue;	
	}
	

	
	
}
